package biz.ezcom.spring.ioc.pojo;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class User {
	private String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@PostConstruct
	public void init(){
		System.out.println("User.init(" + name + ")");
	}
	@PreDestroy
	public void destory(){
		System.out.println("User.destory(" + name + ")");
	}
	
}
